package cn.sjlink.appraise.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * @author tiny
 * @date 2020/4/26 10:44
 * @description
 */
public class ConsignmentStatus {


    //定义回收 寄卖类型
    public static final int TYPE_CONSIGNMENT = 1;//寄卖
    public static final int TYPE_RECYLE = 2;//回收

    //定义门店 总部回收
    public static final int STORE_RECYCLE = 10;
    public static final int CHANNEL_RECYCLE = 20;
    //门店回收状态
    public static final int AUTH_FAULT = 0;//审核未通过
    public static final int WAIT_ENSURE = 1;//待确认
    public static final int WAIT_PAY = 2;//待付款
    public static final int WAIT_AUTH = 3;//付款待审核
    public static final int FINISH = 4;//已完成
    //回收寄卖主流程状态
    public static final int WAIT_ASSESS = 10;//待估价
    public static final int ASSESS_FINISH = 20;//已估价
    public static final int WAIT_SEND = 30;//同意寄卖 待发货
    public static final int EXPRESS = 50;//物流中
    public static final int BACK_EXPRESS = 60;//已寄回
    public static final int DELIVER = 70;//确认收货(待鉴定)
    public static final int RECHECK_FINISH = 80;//鉴定完成（待确认）
    public static final int DISAGREE = 90;//不同意
    public static final int AGREE = 100;//待上新
    public static final int WAIT_BACK = 110;//待寄回
    //新增 认证签约 状态
    public static final int PREPARE_CONTRACT = 41;//准备合同中
    public static final int SIGNATURE = 40;//待签署
    public static final int SALING = 120;//销售中
    public static final int WILL_EXPIRE = 130;//即将过期
    public static final int EXPIRE = 140;//寄卖过期

    public static final int SALED = 150;//已售出
    public static final int WAIT_BALANCE = 160;//待结算
    public static final int BALANCE = 200;//打款完成

    //送往门店物流状态
    public static final int STORE_DELIVER = 2;//待门店收货
    public static final int STORE_SEND = 3;//门店已收货
    public static final int BASE_DELIVER = 0;//总部待收货
    public static final int BASE_FINSISH = 1;//总部收货完成
    public static final int WAIT_PICK = 21;//放置柜子待取件
    public static final int WAIT_UPLOAD = 22;//待上传凭证

    public static Map<Integer, String> mainStatus = new HashMap<>();
    public static Map<Integer, String> storeStatus = new HashMap<>();
    public static Map<Integer, String> expressStatus = new HashMap<>();
    public static Map<Integer,String> categoryNo = new HashMap<>();

    static {
        storeStatus.put(AUTH_FAULT,"审核未通过");
        storeStatus.put(WAIT_ENSURE,"待确认");
        storeStatus.put(WAIT_PAY,"待付款");
        storeStatus.put(WAIT_AUTH,"待审核");
        storeStatus.put(FINISH,"已付款");

        mainStatus.put(WAIT_ASSESS,"待初步估价");
        mainStatus.put(ASSESS_FINISH,"估价完成");
        mainStatus.put(WAIT_SEND,"同意寄卖");
        mainStatus.put(EXPRESS,"物流中");
        mainStatus.put(BACK_EXPRESS,"已寄回");
        mainStatus.put(DELIVER,"确认收货");
        mainStatus.put(RECHECK_FINISH,"鉴定完成");
        mainStatus.put(DISAGREE,"不同意寄卖");
        mainStatus.put(AGREE,"待上架");
        mainStatus.put(WAIT_BACK,"待寄回");
        mainStatus.put(PREPARE_CONTRACT,"合同准备中");
        mainStatus.put(SIGNATURE,"待签署合同");
        mainStatus.put(SALING,"销售中");
        mainStatus.put(WILL_EXPIRE,"即将到期");
        mainStatus.put(EXPIRE,"寄卖过期");
        mainStatus.put(SALED,"已售出");
        mainStatus.put(WAIT_BALANCE,"待结算");
        mainStatus.put(BALANCE,"结算完成");

        expressStatus.put(STORE_DELIVER,"待门店收货");
        expressStatus.put(STORE_SEND,"待发货");
        expressStatus.put(BASE_DELIVER,"待总部收货");
        expressStatus.put(BASE_FINSISH,"总部已收货");

        categoryNo.put(1,"B");
        categoryNo.put(2,"C");
        categoryNo.put(3,"S");
        categoryNo.put(4,"J");
        categoryNo.put(5,"O");
        categoryNo.put(57,"W");
    }
}
